package com.scu.hotelsystem.dao;

import com.scu.hotelsystem.pojo.Staff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StaffDao {
    List<Staff> searchStaff(@Param("search") Staff search);
    List<Staff> searchValidStaff(@Param("search") Staff search, @Param("index")int index, @Param("limit")int limit);
    Staff selectValidStaffByIdPass(@Param("id") int id, @Param("password") String password);
    Staff selectValidStaffByPhonePass(@Param("phone") String phone, @Param("password") String password);
    int updateStaff(@Param("staff") Staff staff);
    int insertAndUpdateStaff(@Param("staff") Staff staff);
    List<Staff> selectValidStaffByPhoneOrResdId(@Param("phone") String phone, @Param("resdId") String resdId);
    int setStaffsInvalidById(@Param("idList") int[] idList);
}
